#include <string.h>
#include "DictionaryEntry.h"

DictionaryEntry::DictionaryEntry(char * key, void * value, char * type)
{
	strcpy(this->key, key);	
	typedValue = new TypedValue(value, type);
}
DictionaryEntry::~DictionaryEntry()
{
	if(typedValue)
	{
		delete(typedValue);
		typedValue = NULL;
	}
}
void * DictionaryEntry::GetValue()
{
	return typedValue->GetValue();
}
char * DictionaryEntry::GetKey()
{
	return key;
}
char * DictionaryEntry::GetType()
{
	return typedValue->GetType();
}
TypedValue * DictionaryEntry::GetTypedValue()
{
	return typedValue;
} 
